#!/usr/bin/env python
# -*- coding: UTF-8 -*-

try:
	import os
	import pygame
	import sys
except ImportError, err:
	print "Could not load %s module." % (err)
	sys.exit(2)

class Command(pygame.sprite.DirtySprite):
	def __init__(self, parent, cmd, source):
		pygame.sprite.DirtySprite.__init__(self)
		self.parent_window = parent
		if cmd == 'Move':
			self.creature = source
			self.clear_size = self.creature.MV
		elif cmd == 'Attack':
			self.creature = source
			self.clear_size = self.creature.atk_range
		elif cmd == 'Magic' or cmd == 'Summon':
			self.spell = source
			self.clear_size = self.spell.range
		elif cmd == 'Rally':
			self.creature = source
			self.clear_size = 1

